I need help in figuring out how to ignore some values during filtering.. |
Re: Does not contain for x in 0 : 9 do { simple == simple && != sMin x } but now I can get the string concatenated with the integer, any help would be appreciated. |
Re: Does not contain vppatel - Thu May 06 10:22:57 EDT 2010 |
Re: Does not contain SystemAdmin - Thu May 06 12:01:01 EDT 2010 There will be 4 inputs Units of measure Range Min Range Max Precision Now when the enter their keyword into the fields the tool will perform the logic of and/or and display the filter for the open module. But they also want it where if they enter "0" for the Min they don't get 0A or 900. Have everything in place already and works for anding everything together but wanted to get this logic in place before I continue. |
Re: Does not contain I cannot make sense of this, so here are some random individual thoughts. [] Concatenate a string with an integer requires an empty string on the end: string Result = sMin x "" [] Assignment statements are a single equal sign: filter Simple = null Simple = Simple and !contains(NameAttr, sMin x "") [] I don't see any int-to-int nor real-to-real operators associated with Filtering, so you are stuck with string comparisons, which are tough. Where as integer #95 is less than #125, string '95' is greater than string '125'. To reasonably compare numbers as strings, you MUST pad the number with leading zeros: string '0095' is less than string '0125'. Convert both integers to strings, take the lengths, and pad the shorter one with the exact right number of zeros, then compare. Real numbers are similar, but you must pad based on the number of digits to the left of the decimal point; 0095.10 is less than 0125.44. But, if you do all that you cannot use the results in a standard Filter. but you could plow through all objects in the module either accepting or rejecting each one; but you cannot save such a filter in a view. You may need to adjust the values in the attributes to be zero-padded. Good luck with Decimal-Hex conversions.
|